<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class About extends CI_Controller {
	var $key = '关于高铭';
	
	public function index()
	{
		$id = $this->input->get_post('id');
		
		$this->load->config('about');
		$about = $this->config->item('about');
		
		$this->load->config('company');
		$company = $this->config->item('company'); 

		if($id == 0 || sizeof($about) < $id){
			$id = 0;
		}
		
		$data['about'] = $about;
		$data['company'] = $company;  
		$data['id'] = $id;
		$data['key'] = $this->key;
		
		$this->load->view('about/about', $data);
	}
}